const base = "/resource";
const cmdbBase = "/cmdb";
const bssBase = "/bss";
const platformbackupBase = "/platformbackup";
//const base = "";
 //const cmdbBase = "";
// const bssBase ="";
// 查询主机
const queryVmInstance = {
    url: `${base}/v1/servers`,
    method: "GET",
    pro: 'servers',
};
// 查询指定主机详情信息
const queryVmRelateInfo = (instanceId) => {
    return {
        url: `${base}/v1/servers/${instanceId}`,
        method: "GET"
    }
};
// 查询指定主机的安全组
const queryVmSecurityGroup = (instanceId) => {
    return {
        url: `${base}/v1/servers/${instanceId}/security-groups`,
        method: "GET"
    }
};
// 查询指定云硬盘的快照
const querySnapshotInfo = (instanceId) => {
    return {
        url: `${base}/v1/volume/${instanceId}/snapshots`,
        method: "GET"
    }
};
// 查询obs
const queryBuckets = {
    url: `${base}/v1/buckets`,
    method: "GET",
};
// 查询指定obs详情信息
const queryBucketsInfo = (instanceId) => {
    return {
        url: `/obs/v1/buckets/${instanceId}`,
        method: "GET"
    }
};
//查询文件列表
const queryFiles = {
    url: `/obs/v1/bucket-files`,
    method: "GET"
}
//查询碎片列表
const queryFragments = {
    url: `/obs/v1/bucket-fragments`,
    method: "GET"
}
//查询弹性公网IP
const queryPublics = {
    url: `${base}/v1/public-ips`,
    method: "GET",
};
//查询指定弹性公网IP的关联实例
const queryPublicBaseInfo = (instanceId) => {
    return {
        url: `${base}/v1/public-ip/${instanceId}`,
        method: "GET",
    }
};
//查询网卡
const queryNetworkCards = {
    url: `${base}/v1/network-cards`,
    method: "GET",
};
// 查询指定网卡详情信息
const queryNetworkCardBaseInfo = (instanceId) => {
    return {
        url: `${base}/v1/network-card/${instanceId}`,
        method: "GET"
    }
};
//查询日志
const queryLogs = (instanceId) => {
    return {
        url: `/logs/${instanceId}/listLogs`,
        method: "GET",
    }
}

//查询云账号列表
const queryAccount = {
    url: `${cmdbBase}/v1/tenants`,
    method: "GET",
};
//云账号查询（未关联平台租户）
const queryUnusedClouds = {
    url: `${cmdbBase}/v1/tenants/unRela`,
    method: "GET",
};
//创建云账号
const createAccount = {
    url: `${cmdbBase}/v1/tenants`,
    method: "POST",
};
//创建云商云账号
const createLocalAccount = {
    url: `${cmdbBase}/v1/tenants/local`,
    method: "POST",
};
//云账号批量导入
const importAccount = {
    url: `${cmdbBase}/v1/tenants/import`,
    method: "POST",
};
//删除云账号
const deleteAccount = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/tenants/${ID}`,
            method: "DELETE",
        }
    )
};
//验证云账号
const verifyAccount = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/tenants/verify/${ID}`,
            method: "PUT",
        }
    )
};
//同步云账号
const syncAccount = {
    url: "/sync/v1/adapter/sync",
    method: "POST",
};
//查询修改的云账号
const querySimpleAccount = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/tenants/${ID}`,
            method: "GET",
        }
    )
}
//修改云账号
const editAccount = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/tenants/${ID}`,
            method: "PUT",
        }
    )
}
//查询资源池
const queryRegions = {
    url: `${cmdbBase}/v1/regions`,
    method: "GET"
};

//资源池创建
const createRegions = {
    url: `${cmdbBase}/v1/regions`,
    method: "POST",
}

//资源池删除
const deleteRegions = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/regions/${ID}`,
            method: "DELETE",
        }
    )
};

//资源池详情页tab接入信息查询
const queryRegionPorts = {
    url: `${cmdbBase}/v1/region-ports`,
    method: "GET",
}

//资源池接入
const importPort = {
    url: `${cmdbBase}/v1/region-ports`,
    method: "POST"
}

//资源池详情页tab可用域信息查询
const queryAvailableZones = {
    url: `${cmdbBase}/v1/available-zones`,
    method: "GET",
}
//查询指定资源池下的可用域配额
const queryRegionAvailableZoneQuota = {
    url: `${cmdbBase}/v1/region-available-zone-quota`,
    method: "GET",
}
//新增指定资源池下的可用域配额
const regionAvailableZoneQuotaAdd = {
    url: `${cmdbBase}/v1/region-available-zone-quota/add`,
    method: "POST",
}
//修改指定资源池下的可用域配额
const regionAvailableZoneQuotaUpdate = {
    url: `${cmdbBase}/v1/region-available-zone-quota/update`,
    method: "PUT",
}
//修改指定资源池下的可用域配额
const regionAvailableZoneQuotaDelete = (uuid) => {
    return {
        url: `${cmdbBase}/v1/region-available-zone-quota-delete/${uuid}`,
        method: "DELETE",
    }
}

// 资源池型号/版本查询
const queryRegionModelVersionList = {
    url: `${cmdbBase}/v1/regions/getRegionModelVersionList`,
    method: "GET"
}

//根据云商查询资源池可用域树状结构 
const getCloudAzTree = (cloudId) => {
    return (
        {
            url: `${cmdbBase}/v1/cloud/getCloudAzTree${cloudId ? `/${cloudId}` : ""}`,
            method: "GET"
        }
    )
}

//云服务商列表查询
const queryClouds = {
    url: `${cmdbBase}/v1/clouds`,
    method: "GET",
}

// 查询云商以及资源池信息
const queryCloudAndRegion = {
    url: `${bssBase}/v1/masterTenant/getCloudAndRegion`,
    method: "GET",
}
// 查询租户人员
const getTenantDetailPersonList = (masterTenantId) => {
    return {
        url: `${bssBase}/v1/masterTenant/${masterTenantId}/staff`,
        method: "GET",
    }
}

//国家\地区列表查询
const queryBigRegions = {
    url: `${cmdbBase}/v1/big-regions`,
    method: "GET",
}

//国家\地区列表查询
const queryProvinces = {
    url: `${cmdbBase}/v1/provinces`,
    method: "GET",
}

//获取产品类型
const queryOptions = {
    url: `${cmdbBase}/v1/options`,
    method: "GET",
}

//接入服务创建
const createRegionPorts = {
    url: `${cmdbBase}/v1/region-ports`,
    method: "POST",
}

//资源池修改
const upDatePoolName = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/regions/${ID}`,
            method: "PUT",
        }
    )
};

// 修改资源池接入信息
const updateRegionPorts = (ID) => {
    return ({
        url: `${cmdbBase}/v1/region-ports/${ID}`,
        method: "PUT",
    })

};

// 删除资源池接入服务
const deleteRegionPorts = (ID) => {
    return (
        {
            url: `${cmdbBase}/v1/region-ports/${ID}`,
            method: "DELETE",
        }
    )
};
//获取消息发布查询
const getMessageList = {
    url: `${base}/v1/message/message-list`,
    method: "GET",
};
// 获取主租户列表信息（主账号列表查询）
const getMasterTenantList = {
    url: `${bssBase}/v1/masterTenant/getMasterTenantList`,
    method: "GET",
};
// 获取主租户列表信息（主账号列表查询无分页）
const getMasterTenantListNoPage = {
    url: `${bssBase}/v1/masterTenant/list`,
    method: "GET",
};
// 获取主租户列表信息（主账号列表查询）
const deleteMaster = (masterTenantId) => {
    return {
        url: `${bssBase}/v1/masterTenant/${masterTenantId}`,
        method: "DELETE"
    }
};
//
const masterUnbindAccount = (masterTenantId, regionId, tenantId) => {
    return {
        url: `${bssBase}/v1/masterTenant/delMasterTenantRegionRelation/${masterTenantId}/${regionId}/${tenantId}`,
        method: "PUT"
    }
};
//获取项目未关联的租户
const getProjectUnRelationUser = {
    url: `${bssBase}/v1/masterTenant/tenants`,
    method: "GET",
}
//根据组织机构获取上级组织的租户列表
const getMasterTenantByOrgId = {
    url: `${bssBase}/v1/masterTenant/list`,
    method: "GET",
}
// 获取主租户关联的云账号信息（云账号列表查询）
const getTenantDetailListByMasterTenantId = {
    url: `${cmdbBase}/v1/tenants`,
    method: "GET",
    pro: 'tenants',
};

// Node列表查询
const getNodes = {
    url: `${cmdbBase}/v2/nodes`,
    method: "GET",
    pro: 'nodes',
};

// Node详情查询
const queryNodeDetails = (nodeId) => {
    return {
        url: `${cmdbBase}/v2/node/${nodeId}`,
        method: "GET",
    };
};

// Node创建
const nodeCreate = (method="POST") => {
    return {
        url: `${cmdbBase}/v2/node`,
        method,
    };
};

// Node修改vnc
const nodeEditVNC = () => {
    return {
        url: `${cmdbBase}/v2/node/vnc`,
        method: "PUT",
    };
};

// Node钻取
const nodeDrill = (nodeId) => {
    return {
        url: `${cmdbBase}/v2/node/inspect/${nodeId}`,
        method: "PUT",
    };
};

// Node删除
const nodeDelete = (nodeId) => {
    return {
        url: `${cmdbBase}/v2/node/${nodeId}`,
        method: "DELETE",
    };
};


/*       --------- 外部网络 --------           */
// 外部网络列表查询
const getExtranetList = {
    url: `${cmdbBase}/v1/external/listNetwork`,
    method: "GET",
}
// 外部网络列表查询
const updateExtranetName = (id) => ({
    url: `${cmdbBase}/v1/external/updateNetwork/${id}`,
    method: "POST",
})

// 获得外部网络详情
const getExtranetDetail = (id) => ({
    url: `${cmdbBase}/v1/external/network/${id}`,
    method: "GET",
})

// 外部网络下子网列表查询
const getExtranetSubnetList = {
    url: `${cmdbBase}/v1/external/listSubnet`,
    method: "GET",
}

// 外部网络创建Vlan重复校验
const checkVlanExist = {
    url: `${cmdbBase}/v1/external/network/valid/vlan`,
    method: "GET",
}
// 外部网络创建
const addExtranet = {
    url: `${cmdbBase}/v1/external/addNetwork`,
    method: "POST",
}

// 给指定外部网络创建子网
const addExtranetSubnet = {
    url: `${cmdbBase}/v1/external/subnet`,
    method: "POST",
}
//  删除外部网络
const deleteExtranet = (id) => ({
    url: `${cmdbBase}/v1/external/network/${id}`,
    method: "DELETE",
})
// 是否能删除外部子网
const canDeleteSubnet = (id) => ({
    url: `${cmdbBase}/v1/external/subnet/isDepend/${id}`,
    method: "GET",
})
//  删除外部子网
const deleteSubnet = (id) => ({
    url: `${cmdbBase}/v1/external/subnet/${id}`,
    method: "DELETE",
})
//  修改外部子网
const updateExtranetSubnetName = (id) => ({
    url: `${cmdbBase}/v1/external/subnet/${id}`,
    method: "PUT",
})

/*       --------- 工单 --------           */
// 工单列表查询 全部/我的(传staffId)
const getWorkOrderList = {
    url: `${cmdbBase}/v1/workOrders`,
    method: "GET",
}
// 工单详情查询 全部/我的(传staffId)
const getWorkOrderDetail = (workOrderId) => ({
    url: `${cmdbBase}/v1/workOrder/${workOrderId}`,
    method: "GET",
})
// 工单创建
const addWorkOrder = {
    url: `${cmdbBase}/v1/workOrder`,
    method: "POST",
}
// 首页工单数据
const getWorkOrderMyMatter = {
    url: `${cmdbBase}/v1/workOrders/myMatter`,
    method: "GET",
}
/*       --------- 主机 --------           */
// 主机查询
const queryHostNodes = {
    url: `${cmdbBase}/v1/nodes`,
    method: "GET",
}
/*       --------- 存储 --------           */
// 存储查询
const queryPhysicalStorages = {
    url: `${cmdbBase}/v1/physical-storages`,
    method: "GET",
}
/*       --------- vmware 资源列表 --------           */
const queryPhysicalStoragesList = {
    url: `${cmdbBase}/v1/physical-storages-list`,
    method: "GET",
}
/*       --------- 基础资源 存储设备 --------           */
// 存储设备列表查询
const getStorageDeviceList = {
    url: `${cmdbBase}/v1/physicalStorageDevice/storageDevices`,
    method: "GET",
}
// 存储设备列表导入
const importStorageDevice = {
    url: `${cmdbBase}/v1/physicalStorageDevice/importFile`,
    method: "POST",
}
// 编辑存储设备
const getStorageDeviceUpdate = {
    url: `${cmdbBase}/v1/physicalStorageDevice/update/storageDevice`,
    method: "PUT",
}
// 存储设备删除
const getStorageDeviceDelete = (instanceId) => ({
    url: `${cmdbBase}/v1/physicalStorageDevice/delete/${instanceId}`,
    method: "DELETE",
})

/*       --------- 基础资源 机房 --------           */
// 机房列表,详情查询
const queryEquipmentRoomsList = {
    url: `${cmdbBase}/v1/equipmentRooms`,
    method: "GET",
}
// 机房新增
const addEquipmentRoom = {
    url: `${cmdbBase}/v1/equipmentRoom`,
    method: "POST",
}
// 机房修改
const editEquipmentRoom = {
    url: `${cmdbBase}/v1/equipmentRoom`,
    method: "PUT",
}
// 删除机房
const deleteEquipmentRoom = (instanceId) => ({
    url: `${cmdbBase}/v1/equipmentRoom/${instanceId}`,
    method: "DELETE",
})
// 详情导入机架
const importEquipmentFramesOfRoom = {
    url: `${cmdbBase}/v1/equipmentFrames/roomDetail/import`,
    method: "POST",
}
// 查询机房下的所有机架
const queryEquipmentFramesOfRoom = (instanceId) => ({
    url: `${cmdbBase}/v1/equipmentFrames/${instanceId}`,
    method: "GET",
})
//删除机房下所有机架
const deleteEquipmentFramesOfRoom = (instanceId) => ({
    url: `${cmdbBase}/v1/equipmentFrames/${instanceId}`,
    method: "DELETE",
})

/*       --------- 基础资源 机架 --------           */
// 机架列表
const queryEquipmentFramesList = {
    url: `${cmdbBase}/v1/equipmentFrames`,
    method: "GET",
}
// 机架删除
const deleteEquipmentFrame = (instanceId) => ({
    url: `${cmdbBase}/v1/equipmentFrame/${instanceId}`,
    method: "DELETE"
})
// 机架修改
const editEquipmentFrame = {
    url: `${cmdbBase}/v1/equipmentFrame`,
    method: "PUT",
}
// 机架列表导入
const importEquipmentFrames = {
    url: `${cmdbBase}/v1/equipmentFrames/import`,
    method: "POST",
}
// 获取机架下所有设备
const queryEquipmentsOfFrame = {
    url: `${cmdbBase}/v1/frame/equipments`,
    method: "GET",
}
// 删除机架下所有设备
const deleteEquipmentsOfFrame = (instanceId) => ({
    url: `${cmdbBase}/v1/equipments/${instanceId}`,
    method: "DELETE",
})
// 机架详情导入设备
const importEquipmentsOfFrame = {
    url: `${cmdbBase}/v1/equipments/import`,
    method: "POST",
}

/*       --------- 基础资源 服务器 start --------           */
// 查询服务器列表
const queryServerList = {
    url: `${cmdbBase}/v1/physical-host`,
    method: "GET",
    pro:'physicalHosts',
}

// 修改服务器
const updateServer = {
    url: `${cmdbBase}/v1/physical-host/update`,
    method: "PUT",
}
// 删除服务器
const deleteServer =(id)=> {
    return {
        url: `${cmdbBase}/v1/physical-host/${id}`,
        method: "DELETE"
    }
}
// 服务器详情
const queryServerDetail =(id)=> {
    return {
        url: `${cmdbBase}/v1/physical-host/${id}`,
        method: "GET"
    }
}
// 服务器文件上传
const uploadServerFile =()=> {
    return {
        url: `${cmdbBase}/v1/physical-host/import`,
        method: "POST"
    }
}

// 查询服务器关联虚拟机列表
const queryServerWithVMList = {
    url: `${cmdbBase}/v1/physical-host-relevance-server`,
    method: "GET",
    pro:'prs',
}

// 根据服务器ID查询物理网卡列表
const queryNTCByserverId =(id)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/physical-network/${id}`,
        method: "GET",
        pro:'physicalNetworkPortList',
    };
};

/*       --------- 基础资源 服务器 end --------           */

/*       --------- 基础资源 网络设备 start --------           */
// 查询网络设备列表
const queryNetworkDeviceList = {
    url: `${cmdbBase}/v1/physicalNetwork`,
    method: "GET",
    pro:'PhysicalNetworks',
}
// 修改网络设备信息
const updateNetworkDevice = {
    url: `${cmdbBase}/v1/physicalNetwork`,
    method: "PUT",
}
// 删除网络设备
const deleteNetworkDevice =(id)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${id}`,
        method: "DELETE"
    }
}
// 查询网络设备详情
const queryNetworkDeviceDetail =(id)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${id}`,
        method: "GET"
    }
}
// 导入网络设备数据
const uploadNetworkDeviceFile =()=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/import`,
        method: "POST"
    }
}
// 网络设备端口数据列表
const queryNetworkDevicePortList = {
    url: `${cmdbBase}/v1/physicalNetwork/ports`,
    method: "GET",
    pro:'ports',
}
// 删除网络设备端口
const deleteNetworkDevicePort =(equipmentId)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${equipmentId}/port`,
        method: "DELETE"
    }
}
// 导入网络设备端口数据
const uploadNetworkDevicePortFile =(equipmentId)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${equipmentId}/port/import`,
        method: "POST"
    }
}
// 网络设备链路数据列表
const queryNetworkDeviceLinkList = {
    url: `${cmdbBase}/v1/physicalNetwork/links`,
    method: "GET",
    pro:'links',
}
// 删除网络设备链路
const deleteNetworkDeviceLink =(equipmentId)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${equipmentId}/link`,
        method: "DELETE"
    }
}
// 导入网络设备链路数据
const uploadNetworkDeviceLinkFile =(equipmentId)=> {
    return {
        url: `${cmdbBase}/v1/physicalNetwork/${equipmentId}/link/import`,
        method: "POST"
    }
}

/*       --------- 基础资源 网络设备 end --------           */

// 查询操作对象参数
const queryInterfaceServiceType = {
    url: `${cmdbBase}/v1/interface-info/serviceType`,
    method: "GET",
};

// 查询操作类型参数
const queryInterfaceOperateType = {
    url: `${cmdbBase}/v1/interface-info/operateType`,
    method: "GET",
};

// 查询interface参数
const queryInterface = {
    url: `${cmdbBase}/v1/interface-info`,
    method: "GET",
};
/*       --------- 基础资源 publicIp运维 start --------           */
// 查询publicIpCidr列表
const queryPublicIpCidrList = {
    url: `${cmdbBase}/v1/floatIp-scope`,
    method: "GET",
}
// add publicIpCidr信息
const addPublicIpCidr = {
    url: `${cmdbBase}/v1/floatIp-scope/insert`,
    method: "POST",
}
// 修改publicIpCidr信息
const updatePublicIpCidr = {
    url: `${cmdbBase}/v1/floatIp-scope/update`,
    method: "PUT",
}
// 删除publicIpCidr
const deletePublicIpCidr =(id)=> {
    return {
        url: `${cmdbBase}/v1/floatIp-scope-delete/${id}`,
        method: "DELETE"
    }
}
// 查询publicIpCidr详情
const queryPublicIpCidrDetail =(id)=> {
    return {
        url: `${cmdbBase}/v1/floatIp-scope/${id}`,
        method: "GET"
    }
}

/*       --------- 基础资源 publicIp运维 end --------           */

// 查询分布式交换机
const querySwitchList = {
    url: `${cmdbBase}/v1/switch`,
    method: "GET",
}

/* ------- 平台备份 --------- */
//查询平台备份策略详情
const getPlatformBackupStrategy = {
    url: `${cmdbBase}/v1/platform-backup-strategy`,
    method: "GET",
}
//创建/更新平台策略接口
const updatePlatformBackupStrategy = {
    url: `${cmdbBase}/v1/platform-backup-strategy`,
    method: "POST",
}
//查询平台备份空间详情
const getPlatformBackupSpace = {
    url: `${cmdbBase}/v1/platform-backup-space`,
    method: "GET",
}
//获取备份文件列表
const getPlatformBackupFiles = {
    url: `${cmdbBase}/v1/platform-backup-files`,
    method: "GET",
}
//创建平台备份文件
const createBackupFile = {
    url: `${cmdbBase}/v1/platform-backup-file/createBackupFile`,
    method: "POST",
}
//删除平台备份文件
const deleteBackupFile =(backupFileId)=> {
    return {
        url: `${cmdbBase}/v1/platform-backup-file/${backupFileId}`,
        method: "DELETE"
    }
}
//下载平台备份文件
const downloadBackupFile = (filePath)=> {
    return {
        url: `${platformbackupBase}/v1/platformbackup/downloadFile?filePath=${filePath}`,
        method: "GET",
    }
}

// 查询node节点下的物理信息
const getPhysicsInfo = {
    url: `${cmdbBase}/v2/node/physics-info`,
    method: "GET",
}

/*       --------- 镜像V2版 --------           */
// 查询镜像列表
const queryImagesV2 = {
    url: `${cmdbBase}/v2/images`,
    method: "GET",
}
// 查询镜像分组
const queryImagesGroupV2 = {
    url: `${cmdbBase}/v2/images/group`,
    method: "GET",
} 
// 创建镜像
const createImageV2 = {
    url: `${cmdbBase}/v2/images`,
    method: "POST",
}
// 删除镜像
const deleteImageV2 = (instance_id) => ({
    url: `${cmdbBase}/v2/images/${instance_id}`,
    method: "DELETE",
})
// 更改镜像操作状态
const updateImageStatusV2 = (instance_id,status) => ({
    url: `${cmdbBase}/v2/images/${instance_id}/${status}`,
    method: "PUT",
})
// 获取上传镜像token
const queryImagesTokenV2 = (instance_id) => ({
    url: `${cmdbBase}/v2/images/token/${instance_id}`,
    method: "GET",
})
// 上传镜像接口
const uploadImageV2 = (image_uuid) => ({
    url: `/image-upload/v2/images/${image_uuid}/file`,
    method: "PUT",
})
// 上传镜像成功回调
const uploadImageCallBackV2 = {
    url: `${cmdbBase}/v2/image/upload/call-back`,
    method: "POST",
}
// 查询宿主机列表
const queryHosts = {
    url: `${cmdbBase}/v1/hosts`,
    method: 'GET',
};
// 告警 聚合接口
const queryAlarmInfoAgg = {
    url: `/monitor/v1/oneAgg`,
    method: 'POST',
};
// 告警 信息接口
const queryAlarmInfoQuery = {
    url: `/monitor/v1/oneQuery`,
    method: 'POST',
};

const hcpcmdb = {
    queryVmInstance,
    queryVmRelateInfo,
    queryVmSecurityGroup,
    querySnapshotInfo,
    queryBuckets,
    queryBucketsInfo,
    queryFiles,
    queryFragments,
    queryPublics,
    queryPublicBaseInfo,
    queryNetworkCards,
    queryNetworkCardBaseInfo,
    queryAccount,
    queryUnusedClouds,
    createAccount,
    createLocalAccount,
    importAccount,
    editAccount,
    querySimpleAccount,
    deleteAccount,
    verifyAccount,
    syncAccount,
    queryLogs,
    queryRegions,
    deleteRegions,
    createRegions,
    queryRegionPorts,
    queryAvailableZones,
    queryRegionAvailableZoneQuota,
    regionAvailableZoneQuotaAdd,
    regionAvailableZoneQuotaUpdate,
    regionAvailableZoneQuotaDelete,
    queryRegionModelVersionList,
    getCloudAzTree,
    queryClouds,
    queryBigRegions,
    queryProvinces,
    queryOptions,
    createRegionPorts,
    updateRegionPorts,
    upDatePoolName,
    deleteRegionPorts,
    getMessageList,
    queryCloudAndRegion,
    getTenantDetailPersonList,
    getMasterTenantList,
    getMasterTenantListNoPage,
    deleteMaster,
    masterUnbindAccount,
    getProjectUnRelationUser,
    getMasterTenantByOrgId,
    getTenantDetailListByMasterTenantId,
    getExtranetList,
    updateExtranetName,
    getExtranetDetail,
    getExtranetSubnetList,
    checkVlanExist,
    addExtranet,
    addExtranetSubnet,
    getNodes,
    queryNodeDetails,
    nodeCreate,
    deleteExtranet,
    canDeleteSubnet,
    deleteSubnet,
    updateExtranetSubnetName,
    getWorkOrderList,
    getWorkOrderDetail,
    addWorkOrder,
    getWorkOrderMyMatter,
    nodeDelete,
    queryHostNodes,
    queryPhysicalStorages,
    queryPhysicalStoragesList,
    getStorageDeviceList,
    importStorageDevice,
    getStorageDeviceUpdate,
    getStorageDeviceDelete,
    queryEquipmentRoomsList,
    addEquipmentRoom,
    editEquipmentRoom,
    deleteEquipmentRoom,
    importEquipmentFramesOfRoom,
    queryEquipmentFramesOfRoom,
    deleteEquipmentFramesOfRoom,
    queryEquipmentFramesList,
    deleteEquipmentFrame,
    editEquipmentFrame,
    importEquipmentFrames,
    queryEquipmentsOfFrame,
    deleteEquipmentsOfFrame,
    importEquipmentsOfFrame,
    queryServerList,
    updateServer,
    deleteServer,
    queryServerDetail,
    uploadServerFile,
    queryNetworkDeviceList,
    updateNetworkDevice,
    deleteNetworkDevice,
    queryNetworkDeviceDetail,
    uploadNetworkDeviceFile,
    queryNetworkDevicePortList,
    deleteNetworkDevicePort,
    uploadNetworkDevicePortFile,
    queryNetworkDeviceLinkList,
    deleteNetworkDeviceLink,
    uploadNetworkDeviceLinkFile,
    queryServerWithVMList,
    queryInterfaceServiceType,
    queryInterfaceOperateType,
    queryInterface,
    queryPublicIpCidrList,
    addPublicIpCidr,
    updatePublicIpCidr,
    deletePublicIpCidr,
    queryPublicIpCidrDetail,
    queryNTCByserverId,
    nodeEditVNC,
    nodeDrill,
    querySwitchList,
    getPlatformBackupStrategy,
    updatePlatformBackupStrategy,
    getPlatformBackupSpace,
    getPlatformBackupFiles,
    createBackupFile,
    deleteBackupFile,
    downloadBackupFile,
    getPhysicsInfo,
    queryImagesV2,
    queryImagesGroupV2,
    queryImagesTokenV2,
    createImageV2,
    deleteImageV2,
    updateImageStatusV2,
    uploadImageV2,
    uploadImageCallBackV2,
    queryHosts,
    queryAlarmInfoAgg,
    queryAlarmInfoQuery,
};
export default hcpcmdb;
